<?php
namespace app\admin\model;
use think\Model;
class Category extends Model
{
	public function getDisplayAttr($value)
	{
		$display = ['1'=>'显示','2'=>'隐藏'];
		return $display[$value];
	}
}
